﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class file_list_import : BasiCommand
    {
        [JsonProperty("config_type")]
        public string ConfigType { get; set; }

        [JsonProperty("dir")]
        public string Directory { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("tablename")]
        public string TableName { get; set; }

        [JsonProperty("pathkey")]
        public string PathKey { get; set; }

        [JsonProperty("filekey")]
        public string FileKey { get; set; }

        public file_list_import()
        {
            ConfigType = "file_list_import";
            Directory = "";
            Name = "文件列表导入";
            TableName = "_file_list";
            PathKey = "path";
            FileKey = "file";
            SuccessJump = -1;
            FailureJump = -1;
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
